
package com.yanboo.modules.quartz.domain;

import com.yanboo.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.CreationTimestamp;
import jakarta.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

@Entity
@Getter
@Setter
@Table(name = "sys_quartz_log")
public class QuartzLog extends BaseEntity implements Serializable {

    @Schema(description = "任务名称", hidden = true)
    private String jobName;

    @Schema(description = "bean名称", hidden = true)
    private String beanName;

    @Schema(description = "方法名称", hidden = true)
    private String methodName;

    @Schema(description = "参数", hidden = true)
    private String params;

    @Schema(description = "cron表达式", hidden = true)
    private String cronExpression;

    @Schema(description = "状态", hidden = true)
    private Boolean isSuccess;

    @Schema(description = "异常详情", hidden = true)
    private String exceptionDetail;

    @Schema(description = "执行耗时", hidden = true)
    private Long time;

    @CreationTimestamp
    @Schema(description = "创建时间", hidden = true)
    private Timestamp createTime;
}
